package com.hsgene.order.dto.pre;

import com.hsgene.order.dto.OrderMallDiscountDto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 预订单商品信息
 *
 * @author wangbing
 * @version 1.0, 2018/8/6
 */
public class PreOrderItemDto implements Serializable {

    private static final long serialVersionUID = 8191699744050389994L;
    /**
     * 商城商品id
     */
    private String mallGoodsId;

    /**
     * 商城商品快照id
     */
    private String snapshootId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品封面
     */
    private String coverUrl;

    /**
     * 商品所需耗材（商品规格包装）
     */
    private String specification;

    /**
     * 价格区间开始
     */
    private BigDecimal priceSectionStart;

    /**
     * 价格区间结束
     */
    private BigDecimal priceSectionEnd;

    /**
     * 购买数量，当前只能为1
     */
    private Integer count;

    /**
     * 单价
     */
    private BigDecimal univalence;

    /**
     * 邮费，当前全免邮
     */
    private BigDecimal postage;

    /**
     * 订单总金额
     */
    private BigDecimal totalAmount;

    /**
     * 订单优惠总金额
     */
    private BigDecimal totalDiscountsAmount;

    /**
     * 订单实际待支付金额
     */
    private BigDecimal totalRealAmount;

    /**
     * 子订单的优惠信息
     */
    private List<OrderMallDiscountDto> discounts;

    public String getMallGoodsId() {
        return mallGoodsId;
    }

    public void setMallGoodsId(String mallGoodsId) {
        this.mallGoodsId = mallGoodsId;
    }

    public String getSnapshootId() {
        return snapshootId;
    }

    public void setSnapshootId(String snapshootId) {
        this.snapshootId = snapshootId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public BigDecimal getPriceSectionStart() {
        return priceSectionStart;
    }

    public void setPriceSectionStart(BigDecimal priceSectionStart) {
        this.priceSectionStart = priceSectionStart;
    }

    public BigDecimal getPriceSectionEnd() {
        return priceSectionEnd;
    }

    public void setPriceSectionEnd(BigDecimal priceSectionEnd) {
        this.priceSectionEnd = priceSectionEnd;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public BigDecimal getUnivalence() {
        return univalence;
    }

    public void setUnivalence(BigDecimal univalence) {
        this.univalence = univalence;
    }

    public BigDecimal getPostage() {
        return postage;
    }

    public void setPostage(BigDecimal postage) {
        this.postage = postage;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalDiscountsAmount() {
        return totalDiscountsAmount;
    }

    public void setTotalDiscountsAmount(BigDecimal totalDiscountsAmount) {
        this.totalDiscountsAmount = totalDiscountsAmount;
    }

    public BigDecimal getTotalRealAmount() {
        return totalRealAmount;
    }

    public void setTotalRealAmount(BigDecimal totalRealAmount) {
        this.totalRealAmount = totalRealAmount;
    }

    public List<OrderMallDiscountDto> getDiscounts() {
        return discounts;
    }

    public void setDiscounts(List<OrderMallDiscountDto> discounts) {
        this.discounts = discounts;
    }
}
